{section loop=$IUsers_Flags name=i}
  <a href="{$IUsers_Flags[i].url}" {if $IUsers_Flags[i].selected}class="selected"{/if}>
    <img src="{$IUsers_Flags[i].image}" alt="{$IUsers_Flags[i].title}" />
  </a>
{/section}